/**
 * @filename:OtherPiece Apr 19, 2024
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**   
 * @Description:TODO(其他计件实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_other_piece")
@ApiModel(value="t_other_piece对象", description="其他计件表")
public class OtherPiece extends Model<OtherPiece> {

	private static final long serialVersionUID = 1713493598742470L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "编号")
    private Long id;
    
    @TableField(value = "userName") 	
	@ApiModelProperty(name = "userName" , value = "员工姓名")
    private String userName;
    
    @TableField(value = "userId") 	
	@ApiModelProperty(name = "userId" , value = "员工id")
    private Long userId;
    
    @TableField(value = "materialNo") 	
	@ApiModelProperty(name = "materialNo" , value = "物料编码")
    private String materialNo;
    
    @TableField(value = "materialName") 	
	@ApiModelProperty(name = "materialName" , value = "物料名称")
    private String materialName;
    
    @TableField(value = "count") 	
	@ApiModelProperty(name = "count" , value = "计件数量")
    private Double count;
    
    @TableField(value = "createTime") 	
	@ApiModelProperty(name = "createTime" , value = "创建时间")
    private Date createTime;

    @TableField(value = "workTime")
    @ApiModelProperty(name = "workTime" , value = "工作日期")
    private Date workTime;
    
    @TableField(value = "piece") 	
	@ApiModelProperty(name = "piece" , value = "计件单价")
    private Double piece;
    
    @TableField(value = "totalCount") 	
	@ApiModelProperty(name = "totalCount" , value = "计件金额(计件数量*计件单价)")
    private Double totalCount;
    

	@Override
    public Serializable pkVal() {
        return this.id;
    }
   
}
